package com.inspection.common;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by zhujun on 2015-6-4.
 */
public class Action {

    /*页面转向*/
    public void render(String page, HttpServletRequest request,HttpServletResponse response) {
        try {
            request.getRequestDispatcher("jsp/"+page+".jsp").forward(request,response);
        } catch (ServletException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
